home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
qbtools1.arc
/
AEERRMSG.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-01-12
|
609b
|
23 lines
rem $linesize:132
rem $title:'Application Engineer Standard Routines'
rem $subtitle:'Print out a fatal error message and abort program'
' Include the COMMON values
rem $include:'AESHARED.BAS'
Sub Ae.error(msg$) static
attr%=(ae.bg%(3%) and 7%) *16% +ae.fg%(3%)
k%=len(msg$)
k%=k%+4%
call xqprint ("+"+string$(k%,"-")+"+",10%,5%,attr%,0%)
call xqprint ("| "+msg$+" |",11%,5%,attr%,0%)
call xqprint ("+"+string$(k%,"-")+"+",12%,5%,attr%,0%)
locate 14,1
print "Last fatal error: ";aesb.fatal%
print "Last non fatal error:";aesb.warning%
system
end sub